\
back

Rabbit Simulator

🢀 previous

Rabbit Simulator

For this school assignment, we were given the freedom to create our own project. I chose to develop a natural selection simulation involving rabbits. Each rabbit in the simulation is characterized by its speed, weight, and radius. Every rabbit can traverse a certain number of tiles based on its radius and speed.

I also designed my own island generator using a noise map. On this island, I randomly scatter plants that serve as the rabbits' food source. When a male and female rabbit reproduce, their offspring inherit mutations based on the mother's speed, weight, and radius.

Ultimately, the simulation reveals the emergence of the most well-adapted rabbits for the island, which is graphically depicted. The graph displays the average characteristics of the rabbit population every 100 days.